package com.example.demo.mapper;

import com.example.demo.model.CreditHistory;
import org.apache.ibatis.annotations.*;

@Mapper
public interface CreditHistoryMapper {
    @Insert("INSERT INTO credit_history (user_id, amount, reason, created_at) " +
            "VALUES (#{userId}, #{amount}, #{reason}, #{createdAt})")
    void insertCreditHistory(CreditHistory history);
}